﻿<#assign ctx="${bw.contextPath}">
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>事件上报</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/assets/plugins/iconfont/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/assets/plugins/mui/css/mui.min.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/assets/css/global.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/assets/css/eventReporting.css" />
</head>

<body>
<div id="app" class="eventReporting-box" v-cloak>
    <!--头部筛选 -s-->
    <div class="header-filter">
        <div class="mui-row filter-box">
            <div :class="'mui-col-xs-4 filter-item '+[actType=='0'?'active':'']" @click="bindChangeType(0)">
            <a href="javascript:;" class="footbar-tab-item">
                <span class="mui-tab-label">我发起的</span>
                <i class="tab-badge" v-text="myUnread" v-if="myUnread>0"></i>
            </a>
        </div>
        <div :class="'mui-col-xs-4 filter-item '+[actType=='1'?'active':'']" @click="bindChangeType(1)">
        <a href="javascript:;" class="footbar-tab-item">
            <span class="mui-tab-label">@我的</span>
            <i class="tab-badge" v-text="atUnread" v-if="atUnread>0"></i>
        </a>
    </div>
    <div :class="'mui-col-xs-4 filter-item '+[actType=='2'?'active':'']" @click="bindChangeType(2)">
    <a href="javascript:;" class="footbar-tab-item">
        <span class="mui-tab-label">公共</span>
        <i class="tab-badge" v-text="publicUnread" v-if="publicUnread>0"></i>
    </a>
</div>
<span class="border" :class="{tab2:actType=='1',tab3:actType=='2'}"></span>
</div>
</div>
<!--头部筛选 -e-->
<div id="pullrefresh" class="mui-content mui-scroll-wrapper">
    <div class="mui-scroll">
        <!--主体列表 -s-->
        <ul class="mui-table-view">
            <li class="mui-table-view-cell eventList" v-for="(item,index) in listData" :data-id='item.eventId' v-on:click="goDetail(item.eventId)">
                <a href="javascript:;" :class="item.new>0?'isNew':''">
                    <div class="mui-row">
                        <div :class="'mui-col-xs-2 list-thumb-box list-thumb-'+[item.imgList.length]">
                            <img :src="path+img.img" v-for="img in item.imgList" />
                        </div>
                        <div class="mui-col-xs-10 list-info-box">
                            <span class="num" v-text="item.total" v-if="item.total>0"></span>
                            <div class="event-header mui-row">
                                <!--我发起的  人员区域-->
                                <p class="mui-col-xs-4 special mui-ellipsis" v-if="actType=='0'">
                                    {{item.user}}
                                </p>
                                <!--@我的  人员区域-->
                                <p class="mui-col-xs-4 special mui-ellipsis" v-else-if="actType=='1'">
                                    {{item.user}}
                                </p>
                                <!--公共信息  人员区域-->
                                <p class="mui-col-xs-4 special mui-ellipsis" v-else-if="actType=='2'">
                                    {{item.user}}
                                </p>
                                <p class="mui-col-xs-8 mui-ellipsis dete" v-text="item.time"></p>
                            </div>
                            <div class="event-desc ">
                                <p class="mui-ellipsis" v-text="item.address"></p>
                                <p class="mui-ellipsis" v-text="item.eventRemark"></p>
                            </div>
                        </div>
                    </div>
                </a>
            </li>
        </ul>
        <p class="listLoading" v-if="loading">正在加载...</p>
        <!--主体列表 -e-->
    </div>
</div>
</div>
<script src="${ctx}/resources/assets/plugins/jquery-1.11.3.min.js"></script>
<script src="${ctx}/resources/assets/plugins/mui/js/mui.min.js"></script>
<script src="${ctx}/resources/assets/plugins/vue.min.js"></script>
<script src="${ctx}/resources/assets/js/global.js"></script>
<script src="${ctx}/resources/assets/js/eventReporting-list.js?random=3000"></script>
</body>

</html>
